package org.yujuan.springbootlearning;

import org.redisson.api.RList;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author yanghao
 */
@Component
public class RedisService {

    @Autowired
    private RedissonClient redissonClient;

    public void testRedis() {
        RList<String> testList = redissonClient.getList("test_list");
        testList.add("1");
        System.out.println(testList);
    }

}
